#!/bin/bash 
cat /var/log/messages | grep -E '(gateway named|dhcpd:|sshd)' | grep -v ' client 192.168.0.9' | grep -v ' client 192.168.0.8' | grep -v ' IN PTR ' | grep -v ' IN AAAA ' | grep -v 'neov.mg IN A ' | grep -v ' nss_ldap:' > /tmp/messages
/usr/bin/php /usr/local/bin/log-to-mysql.php &> /var/log/cron

